<?php
/**
 * @Author: wangjian
 * @Date:   2017-08-28 12:27:35
 * @Last Modified by:   Awe
 * @Last Modified time: 2018-10-11 12:21:28
 * @枚举 数据定义--------(只是定义下 常用的 固定 数据 放在这里)
 */
class Enum{
    public static $userStatus = array(
        1 => array('value' => "正常" , 'color' => ""  ) ,
        2 =>array('value' => "封禁" , 'color' => "red"  )
    );
    //小鸟的飞行轨迹
    public static $birdDirection = array(
        1 => array('value' => "从左到右" , 'color' => "" ),
        2 => array('value' => "从右到左" , 'color' => "" ),
        3 => array('value' => "从上到下" , 'color' => "" ),
    );
    //小鸟的大小
    public static $birdSize = array(
        1 => array('value' => "小" , 'color' => "" ),
        2 => array('value' => "中" , 'color' => "" ),
        3 => array('value' => "大" , 'color' => "" ),
    );
    //签到的条目类型
    public static $signItemType = array(
        1 => array('value' => "金子弹" , 'color' => "" ),
        2 => array('value' => "银子弹" , 'color' => "" ),
        3 => array('value' => "倍率卡" , 'color' => "" ),
        4 => array('value' => "血量卡" , 'color' => "" ),
        5 => array('value' => "独占卡" , 'color' => "" ),
    );
    //用户宝箱的状态
    public static $UserGoodsOrder = array(
        1 => array('value' => "已拍中" , 'color' => "" ),
        2 => array('value' => "已申请提货" , 'color' => "" ),
        3 => array('value' => "已发货" , 'color' => "" ),
        4 => array('value' => "已收货" , 'color' => "" ),
    );
    //用户宝箱里面的礼品类型
    public static $userGoodsType = array(
        'bullet' => array('value' => "子弹" , 'color' => "" ),
        'goods_id' => array('value' => "真实礼品" , 'color' => "" ),
        'card'=> array('value' => "装备卡" , 'color' => "" ),
    );
    //物流配置
    public static $shipperCode = array(
        'STO' => array('value' => "申通快递" , 'color' => "" ),
        'YTO' => array('value' => "圆通快递" , 'color' => "" ),
        'ZTO' => array('value' => "中通快递" , 'color' => "" ),
        'YD' => array('value' => "韵达快递" , 'color' => "" ),
        'SF' => array('value' => "顺丰快递" , 'color' => "" ),
        'UC' => array('value' => "优速快递" , 'color' => "" ),
        'ZJS' => array('value' => "宅急送快递" , 'color' => "" ),
        'FAST' => array('value' => "快捷快递" , 'color' => "" ),
        'LB' => array('value' => "龙邦快递" , 'color' => "" ),
        'JJKY' => array('value' => "佳吉快递" , 'color' => "" ),
        'GTO' => array('value' => "国通快递" , 'color' => "" ),
        'HHTT' => array('value' => "天天快递" , 'color' => "" ),
        'EMS' => array('value' => "EMS物流" , 'color' => "" ),
        'DBL' => array('value' => "德邦物流" , 'color' => "" ),
        'JD' => array('value' => "京东物流" , 'color' => "" ),
        'HTKY' => array('value' => "百世快递" , 'color' => "" ),
    );
    //消息类型
    public static $messageType = array(
        '1' => array('value' => "游戏公告" , 'color' => "" ),
        '2' => array('value' => "规则帮助" , 'color' => "" , 'total' => 1 ),
        '3' => array('value' => "游戏攻略" , 'color' => "", 'total' => 1   ),
        '4' => array('value' => "用户协议" , 'color' => "", 'total' => 1   ),
    );

    //微信的渠道信息配置
    public static $weixinChannel = array(
        '1' => array('value' => "微信开放平台" , 'color' => "" ),
        '2' => array('value' => "小程序" , 'color' => ""  ),
        '3' => array('value' => "微信公众号" , 'color' => ""  ),
    );
    //qq的渠道信息配置
    public static $qqChannel = array(
        '1' => array('value' => "android" , 'color' => "" ),
        '2' => array('value' => "IOS" , 'color' => ""  ),
        '3' => array('value' => "网页授权登录" , 'color' => ""  ),
    );
    //审核状态设定[晒宝的]
    public static $checkData = array(
        '0' => array('value' => "审核中" , 'color' => "" ),
        '1' => array('value' => "审核通过" , 'color' => "blue"  ),
        '2' => array('value' => "审核拒绝" , 'color' => "red"  ),
    );
    //验证码发送类型
    public static $smsSendType = array(
        '1' => array('value' => "注册验证码" , 'color' => "blue"  ),
        '2' => array('value' => "登录验证码" , 'color' => "red"  ),
    );
    //用户装备的使用状态
    public static $userCardStatus = array(
        '1' => array('value' => "未使用" , 'color' => "blue"  ),
        '2' => array('value' => "已经使用" , 'color' => "red"  ),
        '3' => array('value' => "正在使用" , 'color' => "red"  ),
    ); 
    //支付方式
    public static $payTypeData = array(
        '1' => array('value' => "微信" , 'color' => ""  ),
        '2' => array('value' => "支付宝" , 'color' => ""  ),
    ); 
    //充值的类型
    public static $rTypeData = array(
        '1' => array('value' => "账户金额充值" , 'color' => ""  ),
        '2' => array('value' => "装备充值" , 'color' => ""  ),
        '3' => array('value' => "首冲" , 'color' => ""  ),
    ); 

    //支付状态
    public static $payStatusData = array(
        '0' => array('value' => "未支付" , 'color' => "red"  ),
        '1' => array('value' => "支付成功" , 'color' => "green"  ),
        '2' => array('value' => "支付失败" , 'color' => "blue"  ),
    ); 
    //账户的日志操作动作
    public static $accountLogAction = array(
        'signGive' => array('value' => "签到赠送" , 'color' => "red"  ),
        'sliver_register_give' => array('value' => "注册赠送" , 'color' => ""  ),
        'playBird' => array('value' => "打小鸟" , 'color' => ""  ),
        'adminGive' => array('value' => "后台赠送" , 'color' => ""  ),
        'rechargeAccount' => array('value' => "账户充值" , 'color' => ""  ),
        'rechargeCard' => array('value' => "装备卡充值" , 'color' => ""  ),
        'submit_share_goods' => array('value' => "提交晒宝赠送" , 'color' => ""  ),
        'share_give' => array('value' => "分享赠送" , 'color' => ""  ),
        'rechargeAccountCard' => array('value' => "子弹和装备卡首冲" , 'color' => ""  ),
        'link_gold_sliver_register_give' => array('value' => "根据链接进来注册赠送金子弹或者是银子弹" , 'color' => ""  ),
    ); 
    //用户地址的状态
    public static $userAddressDefault = array(
        '0' => array('value' => "否" , 'color' => "red"  ),
        '1' => array('value' => "是" , 'color' => "green"  ),
    );
    //代理商账户状态
    public static $agentStatusData = array(
        '0' => array('value' => "待审核" , 'color' => "red"  ),
        '1' => array('value' => "审核通过" , 'color' => "green"  ),
        '2' => array('value' => "关闭" , 'color' => "red"  ),
    );
    //代理商渠道类型
    public static $agentCtypeData = array(
        '1' => array('value' => "省代理" , 'color' => ""   ),
        '2' => array('value' => "市代理"  , 'color' => ""   ),
        '3' => array('value' => "个人代理"   , 'color' => ""  ),
    );
    //推广类型
    public static $agentTTypeData = array(
        '1' => array('value' => "线上推广" , 'color' => ""   ),
        '2' => array('value' => "线下推广"  , 'color' => ""   ),
    );

    //版本控制【app的类型】
    public static $versionAppPlat = array(
        '1' => array('value' => "IOS" , 'color' => ""   ),
        '2' => array('value' => "Android"  , 'color' => ""   ),
        '3' => array('value' => "小程序"  , 'color' => ""   ),
    );

    //系统平台【app的类型】
    public static $systemPlat = array(
        '1' => array('value' => "IOS" , 'color' => ""   ),
        '2' => array('value' => "Android"  , 'color' => ""   ),
        '3' => array('value' => "小程序"  , 'color' => ""   ),
        '4' => array('value' => "H5"  , 'color' => ""   ),
    );


    //机器人晒宝的状态
    public static $robotSubmitStatus = array(
        '1' => array('value' => "已经发布" , 'color' => ""   ),
        '2' => array('value' => "待处理"  , 'color' => ""   ),
    );
    #########################
    //根据key 获取value值
    public static function getVal($key = ''  , $data ){
        return  isset($data[$key]) ? $data[$key] : '' ;
    }
}
